package com.sdy.healthcode.biz.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
@ApiModel(value = "科室")
public class DepartmentDTO {
    @ApiModelProperty(value = "名称")
    private String name;
    
    @ApiModelProperty(value = "父节点value")
    private Integer parent;
    
    @ApiModelProperty(value = "value")
    private Integer value;
    
    @ApiModelProperty(value = "科室预约规则")
    private String rules;

    @ApiModelProperty(hidden = true)
    private Integer sort;

    @ApiModelProperty(value = "children")
    private List<DepartmentDTO> children;
}
